<template>
    <div class="container">
        <p class="oneP">知识付费行业营销解决方案</p>
        <p class="twoP" style="font-weight:100">消费者高效筛选信息，付费刺激内容生产者产出</p>
        <button class="oneButton" @click="toCreateAIPlan">一键生成方案</button>
        <ul class="ulOne">
            <li v-for="(item,index) in arr1" :key="index" :class="'item'+index">
                <div class="ulTwo" @mouseover="show(index)">
                    <img :src="item[0]">
                    <p>{{item[1]}}</p>
                    <p>{{item[2]}}</p>
                    <p>{{item[3]}}</p>
                </div>
                <div class="ulThree" v-if="redIndex==index">
                    <div><img :src="item[4]"></div>
                    <img src="../../assets/img/二类电商/免费咨询/circle.png">
                </div>
            </li>
        </ul>
        <mask-toast v-if="showMaskToast" @closeMask="closeMask"></mask-toast>
    </div>
</template>
<script>
require("../../assets/css/p.css");
const img1 = require("../../assets/img/切图/知识付费/知识付费行业营销解决方案/1.png");
const img2 = require("../../assets/img/hyfaAll/knowledge/13.png");
const img3 = require("../../assets/img/切图/知识付费/知识付费行业营销解决方案/3.png");
const img4 = require("../../assets/img/切图/知识付费/知识付费行业营销解决方案/4.png");
const img6 = require("../../assets/img/hyfaAll/knowledge/12.png");
const img7 = require("../../assets/img/hyfaAll/knowledge/14.png");
const img8 = require("../../assets/img/hyfaAll/knowledge/16.png");
const img9 = require("../../assets/img/hyfaAll/knowledge/18.png");
const img12 = require("../../assets/img/二类电商/立即注册/011.png");
import maskToast from '../upgrade/upgradeToast'
export default {
  data() {
    return {
      arr1: [
        [img1, "扩展更多流量", "打开移动市场", "", img6],
        [img2, "精准推广投放", "提高转化结果", "", img7],
        [img3, "开展品牌推广", "提升品牌形象", "", img8],
        [img4, "实时数据分析", "检测运营效果", "", img9]
      ],
      redIndex: 0,
      debug: true,
      showMaskToast: false
    };
  },
  methods: {
    show(index) {
      this.redIndex = index;
    },
    toCreateAIPlan(){
        if(this.debug){
            this.showMaskToast = true
            return
        }
        this.$router.push({path:'/createAIPlan'});
    },
    closeMask(data){
        this.showMaskToast = data
    }
  },
  components: {
      maskToast
  }
};
</script>
<style scoped>
.container {
  width: 1200px;
  margin: 0 auto;
  text-align: center;
  margin-top: 80px;
  overflow: hidden;
  margin-bottom: 80px;
}
.oneButton {
  width: 140px;
  box-shadow: 0px 4px 19px #ed9191;
}
.ulOne {
  overflow: hidden;
  margin-top: 60px;
  width:102%;
  position: relative;
  padding:10px 7px;
  overflow: hidden;
}
.ulOne p {
  font-size: 16px;
}
.ulOne > li {
  /* 255*4 1020 180  */
  width: 255px;
  float: left;
  height: 100%;
  text-align: center;
  position: relative;
  margin-left: 55px;
   box-shadow: 2px 2px 16px #ebebeb;
}
.ulOne > li:first-child {
  margin-left: 0px;
}
.ulTwo {
  width: 100%;
  height: 310px;
  text-align: center;
  /* background:#fff; */
}
.item0{
 background: url("../../assets/img/切图/知识付费/知识付费行业营销解决方案/57.png") center;
}
.item1{
    background: url("../../assets/img/切图/知识付费/知识付费行业营销解决方案/58.png") center;
}
.item2{
    background: url("../../assets/img/切图/知识付费/知识付费行业营销解决方案/59.png") center;
}
.item3{
    background: url("../../assets/img/切图/知识付费/知识付费行业营销解决方案/60.png") center;
}
.ulTwo > img {
  margin-top: 60px;
}
.ulTwo > p:nth-child(2) {
  margin-top: 60px;
}
.ulTwo > p:nth-child(3),
.ulTwo > p:nth-child(4),
.ulTwo > p:nth-child(5) {
  margin-top: 10px;
}
.ulThree {
  width: 100%;
  height: 310px;
  position: absolute;
  top: -1px;
  left: 0;
  border:1px solid #ee4041;
  text-align: center;
}
.ulThree > div > img {
  margin-top: 60px;
}
.ulThree > img:nth-child(2) {
  margin-top: 30px;
}
.ulThree > p:nth-child(3) {
  margin-top: 25px;
}
.ulThree > p:nth-child(4),
.ulThree > p:nth-child(5),
.ulThree > p:nth-child(6) {
  margin-top: 10px;
}
</style>